<?php defined('KX_ROOT') || exit('Permission denied');?><!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>用户中心 - <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?></title>
    <link rel="stylesheet" type="text/css" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno2/css/ptm.min.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno2/css/skin.min.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno2/css/font-awesome.min.css" />
</head>
<body>
<div class="ptm-content my-header">
    <div class="my-info">
        <img src="<?php echo $userinfo['avatar'];?>">
        <p class="nickname"><?php if(IS_LOGIN):?><?php echo $userinfo['name'];?><?php else:?><a href="<?php echo \Kuxin\Helper\Url::build("user.public.login",[],"");?>" style="color:#fff">请登录/注册</a><?php endif;?></p>
    </div>
</div>
<div class="ptm-content ptm-card" style="margin-top:15px;">
    <ul class="ptm-list-view" style="">
        <?php if(IS_LOGIN):?>
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="<?php echo \Kuxin\Helper\Url::build("user.mark.index",[],"");?>">我的书架<?php if($userinfo['marknum']):?><span class="ptm-badge ptm-badge-danger"><?php echo $userinfo['marknum'];?></span><?php endif;?></a>
        </li>
        <?php endif;?>
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="<?php echo \Kuxin\Helper\Url::build("user.history.index",[],"");?>">浏览历史</a>
        </li>
    </ul>
</div>
<?php if(IS_LOGIN):?>
<div class="ptm-content ptm-card">
    <ul class="ptm-list-view">
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" <?php echo \Kuxin\Helper\Url::build("user.third.index",[],"");?>>账户绑定</a>
        </li>
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="<?php echo \Kuxin\Helper\Url::build("user.info.pwd",[],"");?>">修改密码</a>
        </li>
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" <?php echo \Kuxin\Helper\Url::build("user.habbit.index",[],"");?>>阅读设置</a>
        </li>
    </ul>
</div>
<?php else:?>

<div class="ptm-content ptm-card" style="margin-top:15px;">
    <ul class="ptm-list-view" style="">
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="<?php echo \Kuxin\Helper\Url::build("user.public.login",[],"");?>">登陆账号</a>
        </li>

        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="<?php echo \Kuxin\Helper\Url::build("user.public.register",[],"");?>">注册账号</a>
        </li>
    </ul>
</div>
<?php endif;?>
<div class="ptm-content ptm-card">
    <ul class="ptm-list-view">
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="<?php echo \Kuxin\Helper\Url::build("page.index.detail",['key'=>'disdaimer'],"");?>">免责声明</a>
        </li>
        <li class="ptm-list-view-cell">
            <a class="ptm-arrow-right" href="<?php echo \Kuxin\Helper\Url::build("page.index.detail",['key'=>'about'],"");?>">关于我们</a>
        </li>
    </ul>
</div>
<?php if(IS_LOGIN):?>
<div style="padding:0 10px;margin-bottom: 30px;">
    <a class="ptm-btn ptm-btn-danger ptm-btn-block" style="padding:5px 0;" href="<?php echo \Kuxin\Helper\Url::build("user.auth.logout",[],"");?>">退出登陆</a>
</div>
<?php endif;?>
</body>
</html>